package com.shu.driftbook.service;

import java.util.List;

import com.shu.driftbook.dao.Book;

public interface DriftQueueService {
	public class Reader{
		public Reader(long i1,long i2){
			setUseduser(i1);
			setWaitinguser(i2);
		}
		public long getUseduser() {
			return useduser;
		}
		public void setUseduser(long useduser) {
			this.useduser = useduser;
		}
		public long getWaitinguser() {
			return waitinguser;
		}
		public void setWaitinguser(long waitinguser) {
			this.waitinguser = waitinguser;
		}
		private long useduser;
		private long waitinguser;
	}
	public long findUsedUser(Integer bookid);
	public long findWaitingUser(Integer bookid);
	public List<Reader> findReader(List<Book> result);
}
